<div id="navLeftBtn" class="navLeftBtn">
  <span></span>
  <span></span>
  <span></span>
</div>
<div id="navLeft" class="navLeft">
  <ul class="navLeftContainer">
    <% if (categoryId=='') { %>
    <li class="navItem navHome"><a href="/">首页</a></li>
    <% } else { %>
    <li class="navItem"><a href="/">首页</a></li>
    <% } %>
    <% categories.forEach(function(category) { %>
      <% if (categoryId == category.id) { %>
      <li class="navItem navActive"><a href="/?categoryId=<%= category.id %>"><%= category.name %></a></li>
      <% } else { %>
      <li class="navItem"><a href="/?categoryId=<%= category.id %>"><%= category.name %></a></li>
      <% } %>
    <% }) %>
  </ul>
</div>